<template>
	<view>
		食物
		<u-tag text="标签" plain size="mini" type="warning"></u-tag>
		<u-rate count="5"></u-rate>
		<!-- <my-comp v-for="(item, index) in 1"></my-comp> -->
		<test-my-comp name='张无忌'></test-my-comp>
		<tab-custom></tab-custom>
	</view>
</template>

<script>
import MyComp from '../../components/test-my-comp.vue';
import testBus from '../../bus/testBus.js'
export default {
	data() {
		return {};
	},
	components: {
		'my-comp': MyComp
	},
	computed:{
		
	},
	watch:{
		
	},
	onLoad() {
		// 生命周期
		console.log('food页面生成的onload');
		testBus.$on('sendData',(data)=>{console.log(data);})
		
	},
	onShow() {
		console.log('food页面生成的onshow');
	},
	onHide() {
		console.log('food页面生成的onHide');
	}
};
</script>

<style></style>
